#!/usr/bin/python

import sys
import pygtk
pygtk.require("2.0") 
import gtk

if gtk.pygtk_version < (2,8,0):
    print "PyGtk 2.8.0 or later required"
    raise SystemExit

from Chessmonk.application import Application

if __name__ == '__main__':
	try:
		filename = sys.argv[1]
	except IndexError:
		filename = ""
	
	Application(filename)
	#gtk.threads_init()
	gtk.main()
